package com.gl.order.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@Builder
@ApiModel("添加角色相关参数")
public class RoleDto {

    @NotBlank(message = "角色参数不能为空")
    @ApiModelProperty("角色名称")
    private String name;

//    @NotBlank(message = "角色编码不能为空")
    @ApiModelProperty("角色编码")
    private String roleCode;

    @ApiModelProperty("角色描述")
    private String remark;

    List<String> permissions;
}
